#ifndef LOG_LOGFILE_H
#define LOG_LOGFILE_H

#include "../../base/FileUtil.hpp"

namespace DBServer
{
namespace Log
{

class LogFile {
public:
    LogFile(int write_buff_size);
    ~LogFile() = default;

    auto append(std::string&) -> void;
    auto flush() -> void;
    auto written_bytes() const -> unsigned long long;

private:
    DBServer::Base::Unti::UnlockAppendFile logger_util;
};

} // namespace Log
} // namespace DBServer

#endif